package com.ruoyi.framework.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author lazydong
 */
@Configuration
@ConfigurationProperties(prefix = "ruoyi.project")
public class ProjectConfigProperties {
    /**
     * 项目名称
     */
    private String name;

    /**
     * 项目版本
     */
    private String version;

    /**
     * 版权年份
     */
    private String copyrightYear;

    /**
     * logo文字
     */
    private String logoText;

    /**
     * 网站的标题标签
     */
    private String websiteTitle;

    /**
     * 密码最大重试次数（全部失败会锁定10分钟）
     */
    private int passwordMaxRetryCount = 10;

    /**
     * 实例演示开关
     */
    private boolean demoEnabled = false;

    /**
     * 获取地址开关
     */
    private boolean addressEnabled = true;

    /**
     * 上传路径
     */
    private String profile;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCopyrightYear() {
        return copyrightYear;
    }

    public void setCopyrightYear(String copyrightYear) {
        this.copyrightYear = copyrightYear;
    }

    public boolean isDemoEnabled() {
        return demoEnabled;
    }

    public void setDemoEnabled(boolean demoEnabled) {
        this.demoEnabled = demoEnabled;
    }

    public boolean isAddressEnabled() {
        return addressEnabled;
    }

    public void setAddressEnabled(boolean addressEnabled) {
        this.addressEnabled = addressEnabled;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public int getPasswordMaxRetryCount() {
        return passwordMaxRetryCount;
    }

    public void setPasswordMaxRetryCount(int passwordMaxRetryCount) {
        this.passwordMaxRetryCount = passwordMaxRetryCount;
    }

    public String getLogoText() {
        return logoText;
    }

    public void setLogoText(String logoText) {
        this.logoText = logoText;
    }

    public String getWebsiteTitle() {
        return websiteTitle;
    }

    public void setWebsiteTitle(String websiteTitle) {
        this.websiteTitle = websiteTitle;
    }
}
